<?php

return [

    // ----------------------- 菜单配置 ----------------------- //
    'config' => [
        // 菜单配置
        'menu' => [
            'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
            'icon' => 'fa fa-puzzle-piece',
        ],
        // 子模块配置
        'modules' => [
        ],
    ],

    // ----------------------- 快捷入口 ----------------------- //

    'cover' => [

    ],

    // ----------------------- 菜单配置 ----------------------- //

    'menu' => [
        [
            'title' => '工作流配置',
            'route' => 'workflow/index',
            'icon' => 'fa fa-retweet',
        ],

        [
            'title' => '待办工作',
            'route' => 'works/index',
            'icon' => 'fa fa-clock-o',
        ],
    ],

    // ----------------------- 权限配置 ----------------------- //

    'authItem' => [
        [
            'title' => '工作流列表',
            'name' => 'workflow/*',
        ],
        [
            'title' => '状态管理',
            'name' => 'status',
            'child' => [
                [
                    'title' => '状态列表',
                    'name' => 'status/index',
                ],
                [
                    'title' => '创建状态',
                    'name' => 'status/create',
                ],
                [
                    'title' => '编辑状态',
                    'name' => 'status/edit',
                ],
                [
                    'title' => '删除状态',
                    'name' => 'status/delete',
                ],

            ]
        ],
        [
            'title' => '流程管理',
            'name' => 'transition',
            'child' => [
                [
                    'title' => '流程列表',
                    'name' => 'transition/index',
                ],
                [
                    'title' => '创建流程',
                    'name' => 'transition/create',
                ],
                [
                    'title' => '编辑流程',
                    'name' => 'transition/edit',
                ],
                [
                    'title' => '删除流程',
                    'name' => 'transition/delete',
                ],
            ]
        ],
        [
            'title' => '元数据管理',
            'name' => 'metadata',
            'child' => [
                [
                    'title' => '元数据列表',
                    'name' => 'metadata/index',
                ],
                [
                    'title' => '创建元数据',
                    'name' => 'metadata/create',
                ],
                [
                    'title' => '编辑元数据',
                    'name' => 'metadata/edit',
                ],
                [
                    'title' => '删除元数据',
                    'name' => 'metadata/delete',
                ],
            ]
        ],
        [
            'title' => '工作审核',
            'name' => 'works',
            'child' => [
                [
                    'title' => '待审核列表',
                    'name' => 'works/index',
                ],
                [
                    'title' => '已审核列表',
                    'name' => 'works/completed',
                ],
                [
                    'title' => '工作审核',
                    'name' => 'works/ajax-approve',
                ],
                [
                    'title' => '工作重审',
                    'name' => 'works/reset',
                ],

            ]
        ],
    ],
];